<?php
require_once('Zend/View/Helper/Abstract.php');

class Kbs_View_Helper_T extends Zend_View_Helper_Abstract
{
    public function __construct()
    {
        $bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
        $bootstrap->bootstrap('Translate');
    }

    public function T($string, $fromTranslationList = false, $type = 'language')
    {
        if ($fromTranslationList) {
            //return Extension_Locale::getTranslation($string, $type, Kbs::initLocale());
        } else {
            return $this->view->translate($string);
        }
    }
}